/***
 * Andmin - Joomla administrator access from Android phone
 * @license http://www.gnu.org/licenses/gpl-3.0.txt
 * @author codegravity.com
 * @copyright (C) 2011 by Matej Koval - All rights reserved!
 * @website http://www.codegravity.com
 */

package com.codegravity.mobile.andmin;

import com.codegravity.mobile.andmin.R;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
/***
 * class to display message.
 */
public class AlertMessage {
	/***
	 * Display alert messaage
	 */
	public static void show(String content, Context con) {
		final AlertDialog alertDialog = new AlertDialog.Builder(con).create();
		alertDialog.setTitle(con.getString(R.string.app_name));
		alertDialog.setMessage(content);
		alertDialog.setButton("OK", new DialogInterface.OnClickListener() {
		      public void onClick(DialogInterface dialog, int which) {
		    	  alertDialog.dismiss();
		        return;
		    } });
		alertDialog.show();
	}
}
